<template>
	<view>
		<view class="project-list">
			<view class="project-info">
				<view class="info-right">
					<text style="font-size: 34rpx; font-weight: 600; margin-bottom: 10px">
						[{{ detail.transferMethodName ? detail.transferMethodName : '暂无' }}]{{ detail.projectName }}
					</text>
					<text style="font-size: 34rpx; color: #db7940; font-weight: 600; margin-bottom: 10px">
						¥{{ detail.listingPrice }}{{ detail.unitName ? detail.unitName : '元' }}
					</text>
					<text class="project-detail" style="margin-bottom: 10px" v-if='dataType!="6" && dataType!="13"'>
						流转期限：{{ detail.startDate ? detail.startDate.split(' ')[0] : '暂无' }}至{{ detail.endDate ? detail.endDate.split(' ')[0] : '暂无' }}
					</text>
					<text class="project-detail" style="margin-bottom: 5px">发布时间：{{ detail.issueTime }}</text>
				</view>
			</view>
		</view>
		<view>
			<view style="height: 80rpx; display: flex; width: 100%; justify-content: space-around; align-items: center">
				<view
					style="height: 60rpx; display: flex; justify-content: center; align-items: center; width: 27%; font-size: 28rpx"
					@click="onClickItem(0)"
					:style="{
						'border-bottom': current == 0 ? '2px solid rgb(41, 121, 255)' : '2px solid white',
						color: current == 0 ? 'rgb(41, 121, 255)' : ''
					}"
				>
					{{ dataType == 6 || dataType == 13 ? '招标信息' : '转出信息' }}
				</view>
				<view style="border-left: 1px solid #000000; height: 50rpx"></view>
				<view
					style="height: 60rpx; display: flex; justify-content: center; align-items: center; width: 27%; font-size: 28rpx"
					@click="onClickItem(1)"
					:style="{
						'border-bottom': current == 1 ? '2px solid rgb(41, 121, 255)' : '2px solid white',
						color: current == 1 ? 'rgb(41, 121, 255)' : ''
					}"
				>
					{{
						dataType == 0 || dataType == 1 || dataType == 7
							? '地块信息'
							: dataType == 8
							? '住房信息'
							: dataType == 2 || dataType == 3 || dataType == 4 || dataType == 5
							? '实物资产信息'
							: dataType == 6
							? '招标方信息'
							: dataType == 9
							? '知识产权信息'
							: dataType == 14 || dataType == 12
							? '采购方信息'
							: //: dataType == 11
							  // ? "涉农项目信息"
							  ''
					}}
				</view>
			</view>
			<view class="content">
				<view v-show="current === 1" style="margin-top: 20px">
					<view v-show="dataType == 0 || dataType == 1 || dataType == 7">
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">地块名称</text>
							<text class="right">{{ detail.projectName }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">地块位置</text>
							<text class="right">{{ detail.address }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">转出面积</text>
							<text class="right">{{ detail.area ? detail.area + detail.areaUnitName : '暂无' }}</text>
						</uni-card>
						<!-- 		<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">土地性质</text>
							<text class="right">{{
                detail.landCharacterName ? detail.landCharacterName : "暂无"
              }}</text>
						</uni-card> -->
						<uni-card class="card" :is-shadow="false" is-full v-if="dataType != '6' || dataType != '13'">
							<text class="left">转出期限</text>
							<text class="right">
								{{ detail.startDate ? detail.startDate.split(' ')[0] : '暂无' }}至{{ detail.endDate ? detail.endDate.split(' ')[0] : '暂无' }}
							</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">项目编号</text>
							<text class="right">{{ detail.xmbh }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">土地四至:</text>
							<view class="right">
								<view>东至：{{ detail.east ? detail.east : '暂无' }}</view>
								<view>西至：{{ detail.west ? detail.west : '暂无' }}</view>
								<view>南至：{{ detail.south ? detail.south : '暂无' }}</view>
								<view>北至：{{ detail.north ? detail.north : '暂无' }}</view>
							</view>
						</uni-card>
						<uni-card class="card" v-if="dataType == 0 || dataType == 1 || dataType == 7" :is-shadow="false" is-full>
							<text class="left">地上附着物</text>
							<view class="right">
								<view v-for="(item, index) in detail.detail" :key="index">
									<view style="padding-bottom: 20rpx">
										<view>名称:{{ item.fixName }}</view>
										<view>数量:{{ item.num }}</view>
										<view>权属关系:{{ item.ownRelation }}</view>
									</view>
								</view>
							</view>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">其他描述</text>
							<text class="right">{{ detail.otherDescription ? detail.otherDescription : '暂无' }}</text>
						</uni-card>
						<!-- 			<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">转出土地用途</text>
							<text class="right">{{
                detail.usefulName ? detail.usefulName : "暂无"
              }}</text>
						</uni-card> -->
					</view>
					<view v-show="dataType == 2">
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">标的类别</text>
							<text class="right">{{ detail.objectTypeName ? detail.objectTypeName : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">资产权益</text>
							<text class="right">{{ detail.propertyRight ? detail.propertyRight : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">他项权利人</text>
							<text class="right">{{ detail.ifOtherRightHolder == 0 ? '否' : '是' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">资产评估</text>
							<text class="right">{{ detail.isAssess == 0 ? '否' : '是' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">资产名称</text>
							<text class="right">{{ detail.assetsName }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">坐落位置</text>
							<text class="right">{{ detail.location }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">建筑面积</text>
							<text class="right">{{ detail.projectName }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">原值(元)</text>
							<text class="right">{{ detail.originalValue }}</text>
						</uni-card>
					</view>
					<view v-show="dataType == 3">
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">标的类型</text>
							<text class="right">{{ detail.objectType ? detail.objectType : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">资产权益</text>
							<text class="right">{{ detail.rightsName ? detail.rightsName : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">他人权利人</text>
							<text class="right">{{ detail.ifOtherRightHolder == 0 ? '否' : '是' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">资产评估</text>
							<text class="right">{{ detail.isAssess == 0 ? '否' : '是' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">林地权利人类型</text>
							<text class="right">{{ detail.forestRightHolderType ? detail.forestRightHolderType : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">林权证本号</text>
							<text class="right">{{ detail.forestRightNo ? detail.forestRightNo : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">面积</text>
							<text class="right">{{ detail.area ? detail.area : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">原值（元）</text>
							<text class="right">{{ detail.originalValue ? detail.originalValue : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">土地四至</text>
							<view class="right">
								<view>东至：{{ detail.east ? detail.east : '暂无' }}</view>
								<view>西至：{{ detail.west ? detail.west : '暂无' }}</view>
								<view>南至：{{ detail.south ? detail.south : '暂无' }}</view>
								<view>北至：{{ detail.north ? detail.north : '暂无' }}</view>
							</view>
						</uni-card>
					</view>
					<view v-show="dataType == 4">
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">标的类型</text>
							<text class="right">{{ detail.objectType ? detail.objectType : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">资产权益</text>
							<text class="right">{{ detail.propertyRight ? detail.propertyRight : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">他人权利人</text>
							<text class="right">{{ detail.ifOtherRightHolder == 0 ? '否' : '是' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">资产评估</text>
							<text class="right">{{ detail.isAssess == 0 ? '否' : '是' }}</text>
						</uni-card>
						<!-- 农业设施类、农村生产设施 -->
						<view v-if="detail.objectTypeCode == 1 || detail.objectTypeCode == 3">
							<uni-card class="card" :is-shadow="false" is-full>
								<text class="left">设施名称</text>
								<text class="right">{{ detail.producer ? detail.producer : '暂无' }}</text>
							</uni-card>
							<uni-card class="card" :is-shadow="false" is-full>
								<text class="left">设施数量</text>
								<text class="right">{{ detail.transferQuantity ? detail.transferQuantity + detail.transferQuantityUnit : '暂无' }}</text>
							</uni-card>
							<uni-card class="card" :is-shadow="false" is-full>
								<text class="left">建造日期</text>
								<text class="right">{{ detail.produceDate ? detail.produceDate : '暂无' }}</text>
							</uni-card>
							<uni-card class="card" :is-shadow="false" is-full>
								<text class="left">备注</text>
								<text class="right">{{ detail.remark ? detail.remark : '暂无' }}</text>
							</uni-card>
						</view>
						<view v-else>
							<uni-card class="card" :is-shadow="false" is-full>
								<text class="left">生产厂家及规格型号</text>
								<text class="right">{{ detail.producer ? detail.producer : '暂无' }}</text>
							</uni-card>
							<uni-card class="card" :is-shadow="false" is-full>
								<text class="left">拟转出数量</text>
								<text class="right">{{ detail.transferQuantity ? detail.transferQuantity + detail.transferQuantityUnit : '暂无' }}</text>
							</uni-card>
							<uni-card class="card" :is-shadow="false" is-full>
								<text class="left">生产日期</text>
								<text class="right">{{ detail.produceDate ? detail.produceDate : '暂无' }}</text>
							</uni-card>
							<uni-card class="card" :is-shadow="false" is-full>
								<text class="left">购买日期</text>
								<text class="right">{{ detail.buyDate ? detail.buyDate : '暂无' }}</text>
							</uni-card>
						</view>
					</view>
					<view v-show="dataType == 5">
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">标的类型</text>
							<text class="right">{{ detail.objectType ? detail.objectType : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">资产权益</text>
							<text class="right">{{ detail.propertyRight ? detail.propertyRight : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">他人权利人</text>
							<text class="right">{{ detail.ifOtherRightHolder == 0 ? '否' : '是' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">资产评估</text>
							<text class="right">{{ detail.isAssess == 0 ? '否' : '是' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">生产厂家及规格型号</text>
							<text class="right">{{ detail.producer ? detail.producer : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">拟转出数量</text>
							<text class="right">{{ detail.transferQuantity ? detail.transferQuantity + detail.transferQuantityUnit : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">生产日期</text>
							<text class="right">{{ detail.produceDate ? detail.produceDate : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">购买日期</text>
							<text class="right">{{ detail.buyDate ? detail.buyDate : '暂无' }}</text>
						</uni-card>
					</view>
					<view v-show="dataType == 6 || dataType == 13">
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">工程建设技术验收标准</text>
							<text class="right">{{ detail.constructionAcceptLevel ? detail.constructionAcceptLevel : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">施工资质</text>
							<text class="right">{{ detail.constructionQualification ? detail.constructionQualification : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">其他</text>
							<text class="right">{{ detail.constructionOther ? detail.constructionOther : '暂无' }}</text>
						</uni-card>
					</view>
					<view v-show="dataType == 6 || dataType == 12">
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">{{ dataType == 12 || dataType == 14 ? '采购方名称' : '招标方名称' }}</text>
							<text class="right">{{ detail.purchaserName ? detail.purchaserName : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full v-show="dataType == 12">
							<text class="left">采购数量 </text>
							<text class="right">{{ detail.purchaseNum}}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">地址</text>
							<text class="right">{{ detail.address ? detail.address : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">法定代表人/负责人</text>
							<text class="right">{{ detail.legal ? detail.legal : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">{{ dataType == 12 || dataType == 14 ? '采购时限' : '项目周期' }}</text>
							<text class="right">{{ detail.projectPeriod ? detail.projectPeriod : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">{{ dataType == 12 || dataType == 14 ? '采购类型' : '招标类型' }}</text>
							<text class="right">{{ detail.callForTenderType ? detail.callForTenderType : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">资金来源</text>
							<text class="right">{{ detail.fundNature ? detail.fundNature : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">资金来源</text>

							<text class="right" v-if="dataType == 12 || dataType == 14" v-for="(item, index) in detail.detail" :key="index">
								{{ item.type }} {{ item.amount ? ':' + item.amount : '' }}
							</text>
							<text class="right" v-else>{{ detail.name ? detail.name : '暂无' }}</text>
						</uni-card>
					</view>
					<!-- 农村宅基地住房 -->
					<view v-show="dataType == 8">
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">房屋面积（平方米）</text>
							<text class="right">{{ detail.housingArea ? detail.housingArea : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">院落面积（平方米）</text>
							<text class="right">{{ detail.courtyardArea ? detail.courtyardArea : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">层数（层）</text>
							<text class="right">{{ detail.numberFloors ? detail.numberFloors : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">权证编号</text>
							<text class="right">{{ detail.certificateNumber ? detail.certificateNumber : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">建设日期</text>
							<text class="right">{{ detail.constructionDate ? detail.constructionDate : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">发证日期</text>
							<text class="right">{{ detail.issuanceDate ? detail.issuanceDate : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">其他描述</text>
							<text class="right">{{ detail.otherDescription ? detail.otherDescription : '暂无' }}</text>
						</uni-card>
					</view>
					<view v-show="dataType == 9">
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">标的名称</text>
							<text class="right">{{ detail.subjectName ? detail.subjectName : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">标的类别</text>
							<text class="right">{{ detail.subjectType ? detail.subjectType : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">权证编号</text>
							<text class="right">{{ detail.certificateNo ? detail.certificateNo : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">专利授权公告时间</text>
							<text class="right">{{ detail.empowerStartTime ? detail.empowerStartTime + '至' + detail.empowerEndTime : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">专利有效期</text>
							<text class="right">{{ detail.validStartTime ? detail.validStartTime + '至' + detail.validEndTime : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">评估机构</text>
							<text class="right">{{ detail.evaluateOrg ? detail.evaluateOrg : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">评估基准日期</text>
							<text class="right">{{ detail.evaluateDate ? detail.evaluateDate : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">账面价值</text>
							<text class="right">{{ detail.paperValue ? detail.paperValue : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">评估价值</text>
							<text class="right">{{ detail.evaluateValue ? detail.evaluateValue : '暂无' }}</text>
						</uni-card>
					</view>
					<view v-show="dataType == 11">
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">项目主管部门</text>
							<text class="right">{{ detail.projectDept ? detail.projectDept : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">项目权属</text>
							<text class="right">{{ detail.property ? detail.property : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">资金来源</text>
							<text class="right">{{ detail.source ? detail.source : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">预算价格（元）</text>
							<text class="right">{{ detail.budgetPrice ? detail.budgetPrice : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">实施地点</text>
							<text class="right">{{ detail.conductLocale ? detail.conductLocale : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">实施时间</text>
							<text class="right">{{ detail.conductTime ? detail.conductTime : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">转出方保证金</text>
							<text class="right">{{ detail.transferorBond ? detail.transferorBond : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">项目概括</text>
							<text class="right">{{ detail.projectOverview ? detail.projectOverview : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">报名地点</text>
							<text class="right">{{ detail.signUpLocale ? detail.signUpLocale : '暂无' }}</text>
						</uni-card>
						<uni-card class="card" :is-shadow="false" is-full>
							<text class="left">报名条件</text>
							<text class="right">{{ detail.signUpCondition ? detail.signUpCondition : '暂无' }}</text>
						</uni-card>
					</view>
				</view>
				<view v-show="current === 0" style="margin-top: 20px">
					<uni-card class="card" :is-shadow="false" is-full>
						<text class="left">转出方</text>
						<text class="right">{{ detail.name ? detail.name : '暂无' }}</text>
					</uni-card>
					<uni-card class="card" :is-shadow="false" is-full>
						<text class="left">电话</text>
						<text class="right">{{ detail.telephone ? detail.telephone : '暂无' }}</text>
					</uni-card>
					<uni-card class="card" :is-shadow="false" is-full>
						<text class="left">项目编号</text>
						<text class="right">{{ detail.xmbh }}</text>
					</uni-card>
					<!-- 水利设施【标的类型-其他】特殊处理 -->
					<uni-card v-if="dataType == 5" class="card" :is-shadow="false" is-full>
						<text class="left">标的类型</text>
						<text class="right">{{ detail.objectType ? detail.objectType : '暂无' }}</text>
					</uni-card>
					<uni-card v-else class="card" :is-shadow="false" is-full>
						<text class="left">标的类型</text>
						<text class="right">{{ detail.objectTypeName ? detail.objectTypeName : '暂无' }}</text>
					</uni-card>
					<uni-card class="card" :is-shadow="false" is-full v-show="!dataType == 6">
						<text class="left">是否属再次转出</text>
						<text class="right">{{ detail.isSubletAgain == 0 ? '否' : '是' }}</text>
					</uni-card>
					<uni-card class="card" :is-shadow="false" is-full>
						<text class="left">挂牌价格</text>
						<text class="right">{{ detail.listingPrice + detail.unitName }}</text>
					</uni-card>
					<uni-card class="card" :is-shadow="false" is-full>
						<text class="left">付款方式</text>
						<text class="right">{{ detail.payTypeName ? detail.payTypeName : '暂无' }}</text>
					</uni-card>
					<uni-card class="card" :is-shadow="false" is-full>
						<text class="left">与转让相关的其他条件</text>
						<text class="right">{{ detail.otherCondition ? detail.otherCondition : '暂无' }}</text>
					</uni-card>
					<uni-card class="card" :is-shadow="false" is-full>
						<text class="left">受让方条件</text>
						<text class="right">{{ detail.conditions ? detail.conditions : '暂无' }}</text>
					</uni-card>
					<uni-card class="card" :is-shadow="false" is-full>
						<text class="left">是否缴纳保证金</text>
						<text class="right">{{ detail.isPayDeposit == 0 ? '否' : '是' }}</text>
					</uni-card>
					<uni-card class="card" :is-shadow="false" is-full>
						<text class="left">交易保证金（元）</text>
						<text class="right">{{ detail.transactionSecurity ? detail.transactionSecurity : '暂无' }}</text>
					</uni-card>
					<uni-card class="card" :is-shadow="false" is-full>
						<text class="left">缴纳形式</text>
						<text class="right">{{ detail.paymentFormName ? detail.paymentFormName : '暂无' }}</text>
					</uni-card>
					<uni-card class="card" :is-shadow="false" is-full>
						<text class="left">挂牌公告期(天)</text>
						<text class="right">{{ detail.listingPeriod ? detail.listingPeriod : '暂无' }}</text>
					</uni-card>
					<uni-card class="card" :is-shadow="false" is-full>
						<text class="left">挂牌期满后，如未征集到满足条件的意向受让方</text>
						<text class="right">{{ detail.handleTypeName ? detail.handleTypeName : '暂无' }}</text>
					</uni-card>
					<!-- <uni-card class="card" :is-shadow="false" is-full>
            <text class="left">挂牌期满后，如未征集到满足条件的意向受让方</text>
            <text class="right">{{ detail.conditions }}</text>
          </uni-card> -->
					<uni-card class="card" :is-shadow="false" is-full>
						<text class="left">交易方式</text>
						<text class="right">{{ detail.transactionsName ? detail.transactionsName : '暂无' }}</text>
					</uni-card>
					<uni-card class="card" :is-shadow="false" is-full>
						<text class="left">价款划入账号</text>
						<view class="right">
							<view>账户名称:{{ detail.accountTitle }}</view>
							<view>开户银行:{{ detail.accountBank }}</view>
							<view>账号:{{ detail.marginAccount }}</view>
						</view>
					</uni-card>
					<uni-card class="card" :is-shadow="false" is-full>
						<text class="left">报名起始时间</text>
						<text class="right">{{ detail.enrollStartTime }}</text>
					</uni-card>
					<uni-card class="card" :is-shadow="false" is-full>
						<text class="left">报名截止时间</text>
						<text class="right">{{ detail.enrollEndTime }}</text>
					</uni-card>
					<uni-card class="card" :is-shadow="false" is-full>
						<text class="left">竞价起始时间</text>
						<text class="right">{{ detail.biddingStartTime }}</text>
					</uni-card>
					<uni-card class="card" :is-shadow="false" is-full>
						<text class="left">竞价截止时间</text>
						<text class="right">{{ detail.biddingEndTime }}</text>
					</uni-card>
					<!-- <uni-card class="card" :is-shadow="false" is-full>
            <text class="left">付款划入账号</text>
            <text class="right">{{ detail.submitTime }}</text>
          </uni-card> -->
					<uni-card class="card" :is-shadow="false" is-full>
						<text class="left">备注</text>
						<text class="right">{{ detail.remark ? detail.remark : '暂无' }}</text>
					</uni-card>
				</view>
				<view>
					<gallery :list="imageUrlList"></gallery>
				</view>
			</view>
		</view>
	</view>
</template>
<script>
import gallery from '@/components/gallery/gallery.vue'
import { supplyProject } from '@/utils/api.js';
export default {
	components: {
	    gallery
	},
	data() {
		return {
			title: 'Hello',
			items: ['转出信息', '地块信息'],
			detail: {},
			current: 0,
			dataType: 0,
			url: this.$baseUrl,
			image: [],
			imageUrlList: [],
		};
	},
	onLoad(e) {
		let data = JSON.parse(e.data);
		console.log(data);
		this.dataType = data.dataType;
		console.log(this.dataType);
		this.getDetail(data);
	},
	methods: {
		async getDetail(e) {
			let res = await supplyProject.getDetail({
				projectId: e.id,
				dataId: e.dataId,
				dataType: e.dataType
			});
			console.log(res);
			// this.detail = res.data.main;
			this.detail = {
				...res.data.main,
				detail: res.data.detail
			};
			this.image = res.data.image;
			for(let i=0;i<this.image.length;i++){
			  this.imageUrlList.push(this.url + this.image[i].url)
			}
			console.log('this.imageUrlList',this.imageUrlList)
			let date1 = new Date(res.data.main.biddingStartTime).getTime() - 60000 * 30;
			let date = new Date(date1);
			let Y = date.getFullYear() + '-';
			let M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-';
			let D = (date.getDate() < 10 ? '0' + date.getDate() : date.getDate()) + ' ';
			let h = (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':';
			let m = (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()) + ':';
			let s = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds();
			console.log(Y + M + D + ' ' + h + m + s);
			this.detail.qdStartTime = Y + M + D + ' ' + h + m + s;
		},

		onClickItem(e) {
			if (this.current != e) {
				this.current = e;
			}
		}
	}
};
</script>

<style scoped lang="less">
.project-list {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;

	.project-info {
		width: 92%;
		margin-top: 20rpx;
		margin-bottom: 20rpx;
		display: flex;

		.info-left {
			image {
				width: 220rpx;
				height: 300rpx;
				border-radius: 10rpx;
			}
		}

		.info-right {
			margin-left: 8rpx;
			display: flex;
			justify-content: space-around;
			flex-direction: column;

			.project-detail {
				font-size: 28rpx;
				color: #303030;
			}
		}
	}
}

.card {
	width: 100%;
}

.left {
	width: 35%;
	float: left;
	font-size: 14px;
	font-family: PingFang-SC-Medium, PingFang-SC;
	font-weight: 500;
	color: #8d8d8d;
	line-height: 20px;
}

.right {
	width: 60%;
	float: right;
	font-size: 15px;
	font-family: PingFang-SC-Medium, PingFang-SC;
	font-weight: 500;
	color: #000000;
	line-height: 21px;
}
</style>
